<!DOCTYPE html>
<html lang="en" class="no-js" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorator="layout">
<head>
    <title>订单操作</title>
    <style type="text/css">
        #form_orderInfo label.error{
            margin-left:10px;
            width:auto;
            display:inline;
            color:red;
        }
    </style>
</head>
<body>
<div layout:fragment="content">
    <div class="row">
        <div class="col-md-12">
            <div class="btn-group pull-right">
                <a th:href="${'/orderInfo/view/'+orderOperator.orderId+'/'+page+'/'+viewState}" id="link_cancel" name="link_cancel" class="btn green">返回<i class="fa fa-arrow-circle-o-left"></i></a>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="form">
                <form role="form" id="form_orderOperator" name="form_orderOperator" th:action="@{'/orderInfo/saveOperator/'+${page}+'/'+${viewState}}" th:object="${orderOperator}" method="post" class="form-horizontal">
                    <h4 class="form-section">操作订单</h4>
                    <input type="hidden" th:field="*{orderId}" />
                    <input type="hidden" th:field="*{orderStatus}"/>
                    <input type="hidden" th:field="*{paymentStatus}"/>
                    <input type="hidden" th:field="*{deliveryStatus}"/>
                    <input type="hidden" th:field="*{isParent}"/>
                    <input type="hidden" name="operatorType" value="MANMADE"/>
                    <div class="form-body">
                        <div th:if="*{orderStatus.description == '已关闭'}" class="form-group">
                            <label class="control-label col-md-3">关闭原因<span class="required" aria-required="true">* </span></label>
                            <div class="col-md-4">
                                <textarea row="3" id="text_closeReason" name="text_closeReason" class="form-control" placeholder="关闭原因" th:field="*{closeReason}" required="" ></textarea>
                            </div>
                        </div>
                        <div th:if="${shipping == 'shipping'}" class="form-group">
                            <label class="control-label col-md-3">发货单号<span class="required" aria-required="true">* </span></label>
                            <div class="col-md-4">
                                <input type="text" id="text_deliveryNumber"  name="text_deliveryNumber" class="form-control" placeholder="发货单号" th:field="*{deliveryNumber}" required=""/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-3">操作备注<span class="required" aria-required="true">* </span></label>
                            <div class="col-md-4">
                                <textarea row="3" id="operatorMessage" name="operatorMessage" class="form-control" placeholder="操作备注" th:field="*{operatorMessage}" required="" ></textarea>
                                <span class="help-block"></span>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions fluid">
                        <div class="col-md-offset-3 col-md-9">
                            <button type="submit" id="bt_submit" name="bt_submit" class="btn blue">提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>